{"version":3,"sources":["pin-header.js"],"names":["BX","namespace","Grid","PinHeader","parent","this","table","header","container","parentNodeResizeObserver","init","prototype","rect","pos","getHead","gridRect","getTable","workArea","Utils","getBySelector","document","getContainer","parentNode","ResizeObserver","proxy","refreshRect","observe","create","addEventListener","_onScroll","listenerParams","passive","_onResize","addCustomEvent","_onGridUpdate","bind","window","isPinned","remove","pin","onCustomEvent","async","cells","getByTag","cloneThead","clone","cloneCells","resizeCloneCells","forEach","cell","index","width","parseInt","style","firstElementChild","length","setTimeout","decl","block","mix","attrs","content","tag","hidden","getWrapper","appendChild","getFixedTable","unpin","stopPin","styleForEach","position","top","bottom","height","box-shadow","startPin","scrollY","scrollRect","scrollTop","scrollingElement","documentElement","body"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,WAQbD,GAAGE,KAAKC,UAAY,SAASC,GAE5BC,KAAKD,OAAS,KACdC,KAAKC,MAAQ,KACbD,KAAKE,OAAS,KACdF,KAAKG,UAAY,KACjBH,KAAKI,yBAA2B,KAChCJ,KAAKK,KAAKN,IAGXJ,GAAGE,KAAKC,UAAUQ,WACjBD,KAAM,SAASN,GAEdC,KAAKD,OAASA,EACdC,KAAKO,KAAOZ,GAAGa,IAAIR,KAAKD,OAAOU,WAC/BT,KAAKU,SAAWf,GAAGa,IAAIR,KAAKD,OAAOY,YAEnC,IAAIC,EAAWjB,GAAGE,KAAKgB,MAAMC,cAAcC,SAAU,oBAAqB,MAE1E,IAAKH,EACL,CACCA,EAAWZ,KAAKD,OAAOiB,eAAeC,WACtCL,IAAaA,EAAWA,EAASK,WAAaL,EAG/C,KAAMA,EACN,CACCZ,KAAKI,yBAA2B,IAAIT,GAAGuB,eAAevB,GAAGwB,MAAMnB,KAAKoB,YAAapB,OACjFA,KAAKI,yBAAyBiB,QAAQT,GAGvCZ,KAAKsB,OAAO,MAEZP,SAASQ,iBAAiB,SAAU5B,GAAGwB,MAAMnB,KAAKwB,UAAWxB,MAAOL,GAAGE,KAAKgB,MAAMY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